//
//  SignInApple.h
//  Kaleido
//
//  Created by lijunge on 2019/12/19.
//  Copyright © 2019 lijunge. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol SignInDelegate <NSObject>

- (void)signInDidSuccessWithInfo:(NSMutableDictionary *)info;

- (void)signInDidFailWithInfo:(NSString *)error;
@end

@interface SignInApple : NSObject

@property (nonatomic, weak) id<SignInDelegate> delegate;
// 处理授权
- (void)handleAuthorizationAppleIDButtonPress;

// 如果存在iCloud Keychain 凭证或者AppleID 凭证提示用户
- (void)perfomExistingAccountSetupFlows;


@end

NS_ASSUME_NONNULL_END
